﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="AddProduct.aspx.cs" Inherits="WXYW.AddProduct" %>

<asp:Content ID="Content2" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    新增产品信息
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <table cellpadding="0px" cellspacing="0px" style="width: 100%">
        <tr>
            <td style="background-color: #f5f5f5; width: 20px;">
            </td>
            <td style="background-color: #ffffff;">
                <table width="100%">
                    <tr style="height: 30px">
                        <td style="width: 100px">
                            物料号:
                        </td>
                        <td style="width: 200px">
                            <asp:TextBox ID="MaterialNOTxtBox" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td style="width: 10px">
                            
                        </td>
                        <td style="width: 100px">
                            产品型号:
                        </td>
                        <td style="width: 200px">
                            <asp:TextBox ID="ModelNOTxtBox" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td style="width: 10px">
                            <asp:RequiredFieldValidator ID="ModelNORequiredValidator" runat="server" ErrorMessage="请输入产品型号；"
                                Text="*" ControlToValidate="ModelNOTxtBox" ValidationGroup="NewProductValidation"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr style="height: 30px">
                        <td style="width: 100px">
                            版本号:
                        </td>
                        <td style="width: 200px">
                            <asp:TextBox ID="VersionNOTxtBox" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td style="width: 10px">
                        </td>
                        <td style="width: 100px">
                            产品类型:
                        </td>
                        <td style="width: 200px">
                            <asp:DropDownList ID="ProductTypeDropdownList" runat="server" Width="200px"></asp:DropDownList>
                        </td>
                        <td style="width: 10px">
                        </td>
                    </tr>
                    <tr style="height: 30px">
                        <td style="width: 100px">
                            产品属性:
                        </td>
                        <td style="width: 200px">
                            <asp:DropDownList ID="PropertyDropdownList" runat="server" Width="200px">
                                <asp:ListItem Text="自研" Value="自研"></asp:ListItem>
                                <asp:ListItem Text="非自研" Value="非自研"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td style="width: 10px">
                        </td>
                        <td style="width: 100px">
                            代理商:
                        </td>
                        <td style="width: 200px">
                            <asp:DropDownList ID="ProviderDropdownList" runat="server" Width="200px"></asp:DropDownList>
                        </td>
                        <td style="width: 10px">
                        </td>
                    </tr>
                    <tr style="height: 30px">
                        <td style="width: 100px">
                            保修期限(月):
                        </td>
                        <td style="width: 200px">
                            <asp:TextBox ID="RepairPeriodTxtBox" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td style="width: 10px">
                            <asp:RequiredFieldValidator ID="RepairPeriodRequiredFieldValidator" runat="server" ErrorMessage="请输入保修期限；"
                                Text="*" ControlToValidate="RepairPeriodTxtBox" ValidationGroup="NewProductValidation"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RepairPeriodFormatValidator2" runat="server" ErrorMessage="请输入保修期限；"
                            Text="*" ValidationExpression="^[0-9]+$" ControlToValidate="RepairPeriodTxtBox" ValidationGroup="NewProductValidation"></asp:RegularExpressionValidator>
                        </td>
                        <td style="width: 100px">
                            产品描述:
                        </td>
                        <td style="width: 200px">
                            <asp:TextBox ID="DescriptionTxtBox" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td style="width: 10px">
                        </td>
                    </tr>
                    <tr align="center">
                        <td colspan="6">
                            <asp:Button ID="AddProductButton" runat="server" Text="保存产品" 
                                onclick="AddProductButton_Click" ValidationGroup="NewProductValidation" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <asp:Label ID="MsgLbl" runat="server" ForeColor="Red"></asp:Label>
                             <asp:ValidationSummary ID="ValidationSummary" runat="server" EnableClientScript="true"
                                DisplayMode="BulletList" ValidationGroup="NewProductValidation" />
                        </td>
                    </tr>
                </table>
            </td>
            <td style="background-color: #f5f5f5; width: 20px;">
            </td>
        </tr>
    </table>
</asp:Content>
